FROM mysql:8.0.11
COPY ./my.cnf /etc/my.cnf
ENV INSTALL_DB_SQL init_database.sql
COPY ./my.cnf /etc/my.cnf
COPY ./$INSTALL_DB_SQL /docker-entrypoint-initdb.d
RUN chmod a+x /docker-entrypoint-initdb.d/$INSTALL_DB_SQL